<?php if (!defined('THINK_PATH')) exit();?><!--测试-->
							<style type="text/css">
								.rule {
									text-align: center;
								}								
								.rule th {
									line-height: 24px;
									background: #ddd repeat-x;
									white-space: nowrap;
									margin-right: 5px;
									border: 1px solid #dcdcdc;
								}								
								tr {
									display: table-row;
									vertical-align: inherit;
									border-color: inherit;
								}								
								.rule td {
									background: #FFF;
									line-height: 22px;
									padding: 5px;
									border: 1px solid #dcdcdc;
								}
								
								.goods {									
									text-align: center;									
									display: none;
									padding: 3px;
								}
								.goods table{
									margin:5px auto;
									width: 80%;
								}								
								.goods th {
									line-height: 24px;
									background: #ddd repeat-x;
									white-space: nowrap;
									margin-right: 5px;
									border: 1px solid #dcdcdc;
								}								
							
								.goods::after {
									content: '';
									display: block;
									height: 15px;
								}								
								.goods_line {
									border: 1px solid black;
								}
							</style>

							<table class="table table-striped table-bordered table-hover rule" style="margin-bottom:0;width:100%">
								<tbody>
									<tr>
											<th  width="10%">序号</th>
											<th  width="20%">单号</th>
											<!-- <th  width="20%">备注</th> -->
											<th  width="10%">总件数</th>
											<th  width="10%">总金额</th>
											<th  width="10%">创建人</th>
											<th  width="10%">创建时间</th>
											<th  width="10%">操作</th>
									</tr>
								</tbody>
								</table>
					<?php if(is_array($lists['lists'])): $k = 0; $__LIST__ = $lists['lists'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k;?><table class="table table-striped table-bordered table-hover rule" style="margin-bottom:0;width:100%">
								<tbody>
									<tr class="goods_infor">
										<td  width="10%">
											<a href="#"><?php echo ($k); ?></a>
										</td>
										<td  width="20%"><?php echo ($vo["sn"]); ?></td>
										<!-- <td  width="20%"><?php echo ($vo["remark"]); ?></td> -->
										<td  width="10%"><?php echo ($vo["total"]); ?></td>
										<td  width="10%"><?php echo ($vo["amount"]); ?></td>
										<td  width="10%"><?php echo ($vo['username'] == '' ?'系统后台':$vo['username']); ?></td>
										<td  width="10%"><?php echo (date("Y-m-d H:i:s",$vo["create_time"])); ?></td>
										<td width="10%"><a class="btn btn-sm btn-success goods_infor_btn" >详情<i class="icon-chevron-down"></i><!-- <i class="icon-chevron-up"></i> --></a>
									</tr>
								</tbody>
								</table>
						
							<div class="goods">
								<div class="goods_line"></div>
								<table class="table table-striped table-bordered table-hover">
									<tr>
										<th width="5%">序号</th>
										<th width="10%">51M货号</th>
										<th width="15%">商品名称</th>
										<th width="5%">单价</th>
										<th width="5%">数量</th>
										<th width="5%">小计</th>
									</tr>
									  <?php if(is_array($vo['list'])): $i = 0; $__LIST__ = $vo['list'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><tr>
										<td ><?php echo ($i); ?></td>
										<td ><?php echo ($v["goods_sn"]); ?></td>
										<td ><?php echo ($v["goods_name"]); ?></td>
										<td ><?php echo ($v["price"]); ?></td>
										<td ><?php echo ($v["quantity"]); ?></td>
										<td ><?php echo ($v['price']*$v['quantity']); ?></td>
									</tr><?php endforeach; endif; else: echo "" ;endif; ?>
	<!-- 								<tr>
										<td width="10%">g2 meimei baby nat insect repellent【9316254120205】</td>
										<td width="15%">BM038</td>
										<td width="5%">0.70澳元</td>
										<td width="5%">100</td>
										<td width="5%">100</td>
										<td width="5%">-60</td>
									</tr> -->

								</table>

								<div class="goods_line"></div>
							</div><?php endforeach; endif; else: echo "" ;endif; ?>

							<!--测试-->

							<script type="text/javascript">
								$('.goods_infor_btn').click(function() {
									var i_cls = $(this).find('i').attr('class');
									if(i_cls == "icon-chevron-down"){
										$(this).find('i').attr('class',"icon-chevron-up");
									}else{
										$(this).find('i').attr('class',"icon-chevron-down");
									}
									var goods_infor = $('.goods');
									var index = $(this).index('.goods_infor_btn');
									goods_infor.eq(index).toggle();
								})
							</script>

					<table style=" float: right; margin-bottom:10px">
					    <tr>
					        <td style="text-align: right;"> <div class="page_list_ops dataTables_paginate paging_bootstrap pagination" ><?php echo ($lists['page_html']); ?></div></td>
					    </tr>
					</table>

<script type="text/javascript">



</script>